#include "ros/ros.h"
#include "dynamic_reconfigure/server.h"
#include "dynamicparam/dynamicConfig.h"
// setCallback(const boost::function<void (dynamicparam::dynamicConfig &, uint32_t level)> &callback)
void cb(dynamicparam::dynamicConfig &config, uint32_t level){
    ROS_INFO("%d,%.2f,%d,%s,%d",
        config.int_param,
        config.double_param,
        config.bool_param,
        config.string_param.c_str(),
        config.list_param);
}


int main(int argc, char *argv[])
{
        ros::init(argc,argv, "server");
        dynamic_reconfigure::Server<dynamicparam::dynamicConfig> ser;
// void dynamic_reconfigure::Server<dynamicparam::dynamicConfig>::

        ser.setCallback(boost::bind(&cb,_1,_2));
        ros::spin();
        return 0;
}